<table border="1" class="tablebg" cellspacing="1" align="right" border="1" width="900px">
   		<tr>
   			<th>Customer_ID</th>
   			<th>CustomerName</th>
   			<th>Country</th>
   			<th>Lab_ID</th> 
   			<th>Action</th>  			
   		</tr> 		
<?php echo form_open('customer'); ?>   		
<?php if (isset($result)){?>
   	
   		<?php foreach ($result as $row):?> 
		<tr>
			<?php //$this->session->set_userdata('Customer_ID', $row->Customer_ID);?>			
			<td class="row1"><?php echo $row->Customer_ID; ?> </td>
			<td class="row1"><?php echo $row->CustomerName ;?> </td>
			<td class="row1"><?php echo $row->Country;?> </td>
			<td class="row1"><?php echo $row->Lab_ID;?> </td>
			<td class="row1"><a href="<?php echo base_url('/customer/edit')?>">Edit</a> <?php $Customer_ID=$row->Customer_ID;echo '<id=a>'.anchor("customer/delete/$Customer_ID","delete").'</a>';?> </td>		
		</tr>	   
 		<?php endforeach; ?>				
   		<tr>   			
   			<td><input type="text" name ="Customer_ID" /></td>
   			<td><input type= "text" name ="CustomerName"/></td>
   			<td><input type= "text" name ="Country"/></td>
   		    <td><?php echo form_dropdown('Lab_ID', $lab, 'large');?></td>   			
   			<td><input type="submit" id="submit" value="insert"/> </td>
   		</tr>
   	</table>
   	<?php if (isset($error)){
		echo "<br/>";   			
   		echo '<h3>'.$error.'</h3>';
		echo '<br/>';
   	}
   	
   	?>
   	<?php echo $this->pagination->create_links(); // tạo link phân trang?>  			
   	
 <?php }?>
